package com.amado.designPattern.d03singleton;

import java.util.Arrays;

public class Test {
	public static void main(String[] args) {
//		Singleton singleton = new Singleton();
		System.out.println(Singleton.getInstance());
		System.out.println(Singleton.getInstance());
		System.out.println(Singleton.getInstance());
		
		
		new Thread(()->Singleton.getInstance().print(Arrays.asList("a1","a2","a3"))).start();
		new Thread(()->Singleton.getInstance().print(Arrays.asList("b1","b2","b3"))).start();
	}
}
